import { createApp } from 'vue'
import App from './App.vue'
// element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 自己的icon图标
import 'virtual:svg-icons-register'
import gloablComponent from './components/general'
//引入模板的全局的样式
import '@/styles/index.scss'
// plugins
import plugins from './plugins'
// pinia 注册
// import pinia from './store'
// vue-router
import router from './router'
// 动态路由
import '@/router/permission'
const app = createApp(App).use(router).use(ElementPlus, { locale: zhCn }).use(gloablComponent).use(plugins)
// .use(pinia)
app.mount('#app')
